import 'package:seedfour/generated/json/base/json_field.dart';
import 'package:seedfour/generated/json/invite_settles_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class InviteSettlesEntity {
  int? total;
  List<InviteSettlesData>? data;

  InviteSettlesEntity();

  factory InviteSettlesEntity.fromJson(Map<String, dynamic> json) =>
      $InviteSettlesEntityFromJson(json);

  Map<String, dynamic> toJson() => $InviteSettlesEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class InviteSettlesData {
  int? createdAt;
  int? updatedAt;
  int? id;
  String? referrerUid;
  String? referrerName;
  String? refereeUid;
  String? refereeName;
  int? referrerAt;
  String? orderId;
  int? orderAmount;
  int? refeAmount;
  String? remark;
  String? title;
  String? orderDate;
  int? orderTimestamp;
  String? statiMonth;
  String? benefitUid;
  String? benefitName;
  int? cacelStatus;

  InviteSettlesData();

  factory InviteSettlesData.fromJson(Map<String, dynamic> json) =>
      $InviteSettlesDataFromJson(json);

  Map<String, dynamic> toJson() => $InviteSettlesDataToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
